﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Purchases
{
    /// <summary>
    /// 添加付款计划行信息
    /// </summary>
    public class CreatePaymentCommand : IRequest<Result>
    {
        /// <summary>
        /// 行号
        /// </summary>
        public int PaymentId { get; set; }

        /// <summary>
        /// 付款计划时间
        /// </summary>
        public DateTime? ScheduleTime { get; set; }

        /// <summary>
        /// 付款比例
        /// </summary>
        public decimal PaymentRatio { get; set; }

        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal PaymentAmount { get; set; }

        /// <summary>
        /// 预付款
        /// </summary>
        public decimal Advance { get; set; }

        /// <summary>
        /// 开票金额
        /// </summary>
        public decimal InvoiceAmount { get; set; }

        /// <summary>
        /// 已付款金额
        /// </summary>
        public decimal AmountPaid { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 订单编码(外键 采购/委外)
        /// </summary>
        public string PurchaseNumber { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
